import request from '@/utils/request'

// 查询班级入学码列表
export function listCode(query) {
  return request({
    // url: '/system/code/list',
    url: '/class/code/list',
    method: 'get',
    params: query
  })
}

// 查询班级入学码详细
export function getCode(id) {
  return request({
    // url: '/system/code/' + id,
    url: '/class/code/' + id,
    method: 'get'
  })
}

// 生成班级入学码
export function addCode(data) {
    return request({
      // url: '/system/help',
      url: '/class/code',
      method: 'post',
      data: data
    })
  }


// 删除班级入学码
export function delCode(ids) {
  return request({
    // url: '/system/code/' + id,
    url: '/class/code/' + ids,
    method: 'delete'
  })
}

